package com.rk.order.receiver;

import com.rk.hosp.vo.msm.MsmVo;
import com.rk.order.mapper.MsmVoMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.HashMap;
import java.util.Map;

/**
 * @author :Rk.
 * @date : 2022/12/8
 */

@SpringBootTest
@RunWith(SpringRunner.class)
public class rkTest {

    @Autowired
    private MsmVoMapper msmVoMapper;

    @Test
    public void testmet(){

        //短信提示 模板
        MsmVo msmVo = new MsmVo();
        msmVo.setPhone("123567");
        msmVo.setTemplateCode("orderTemplate");
        Map<String,Object> param = new HashMap<String,Object>(){{
            put("title", "北京第四医院内科");
            put("amount", 50);
            put("reserveDate", "2022-12-10 早上10:00");
            put("name", "王牛");
            put("quitTime","2022-12-08 15:00:00");
        }};
        msmVo.setParam(param);

        msmVoMapper.saveitem(msmVo);
    }
}
